package com.gaodun.hk.common.response;

import lombok.AllArgsConstructor;
import lombok.Data;

/**
 * @author snaildev
 * @date 2020/04/14
 **/
@Data
@AllArgsConstructor
public class BasicResponse<T> implements IResponse<T> {
    public static final Integer OK = 0;
    private int status;
    private String info;
    private T result;

    public static <T> BasicResponse create(int status, String message, T data) {
        return new BasicResponse(status, message, data);
    }
}